//配置路由表
import React from "react";

let Home = React.lazy(() => import("../pages/home/Index"));
let My = React.lazy(() => import("../pages/my/Index"));
let Login = React.lazy(() => import("../pages/login/Index"));
let City = React.lazy(() => import("../pages/city/Index"));
let Layout = React.lazy(() => import("../pages/layout/Index"));
let routes = [
  {
    path: "/",
    element: <Layout />,
    children: [
      {
        path: "/home",
        element: <Home />,
      },
      {
        path: "/my",
        element: <My />,
      },
    ],
  },
  {
    path: "/login",
    element: <Login />,
  },
   {
    path: "/city",
    element: <City />,
  },
];

export default routes
